# -*-python2.6.7-webpy0.3-*-
# -*-utf-8-*-
import web
from controllers.blogAdmin import app

session = web.session.Session(app, web.session.DiskStore('sessions'), initializer={'id':0})

def session_hook():
    web.ctx.session = session

app.add_processor(web.loadhook(session_hook))

if __name__ == '__main__':
    app.run()